<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*,dto.Post" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" contentType="text/html; charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="updatePost">
<table>
<tr>
<td>职位编号</td>
<td>职位名称</td>
</tr>

<%

Vector<Post> v=(Vector<Post>)session.getAttribute("allPost");
Iterator<Post>it=v.iterator();
String pId=request.getParameter("pId");
Post p=null;
while(it.hasNext()){
	p=it.next();

	if(p.getpId().equals(pId)){
%>
<tr>
 <td><input type="text" name="pId" readonly="true" value=<%=p.getpId() %>></td>
 <td><input type="text" name="pName" value=<%=p.getpName() %>></td>
 <td><input type="submit" value="确认修改"></td>
</tr>
<% 	
}
	}
%>

</table>
</form>
</body>
</html>